package rad.framework.mda.generator.template.main.webapp.webinf.classes;

import java.util.*;
import org.eclipse.uml2.uml.*;
import rad.framework.mda.generator.util.*;

public class ApplicationProps
{
  protected static String nl;
  public static synchronized ApplicationProps create(String lineSeparator)
  {
    nl = lineSeparator;
    ApplicationProps result = new ApplicationProps();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "# Define custom labels in this file to override messages.properties" + NL + "" + NL + "titlebar.text=";
  protected final String TEXT_2 = NL + "footer.text= ";
  protected final String TEXT_3 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    

    Model uml2Model = (Model) argument;
    stringBuffer.append(TEXT_1);
    stringBuffer.append(NameHelper.getCapName(uml2Model).replace("-"," "));
    stringBuffer.append(TEXT_2);
    stringBuffer.append(NameHelper.getCapName(uml2Model).replace("-"," "));
    stringBuffer.append(TEXT_3);
    return stringBuffer.toString();
  }
}
